perilously close

Translations
опасно близко
The hikers found themselves perilously close to the edge of the cliff.
Туристы оказались опасно близко к краю утеса.